package com.banach.prema.enums;

/**
 * @author 周远朋
 *
 **/
public enum DateType {

    NEW("1","新历"),
    OLD("0","农历");

    private final String value;
    private final String desc;

    DateType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static DateType getDateType(String value){
        for(DateType ut : DateType.values()){
            if(ut.getValue().equals(value)){
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
